package com.myspace_1.myproject_1;

public class B {
    Integer in;
    A a;

    public Integer getIn() {
        return in;
    }

    public void setIn(Integer in) {
        this.in = in;
    }

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        B b = (B) o;

        if (!in.equals(b.in)) return false;
        return a.equals(b.a);
    }

    @Override
    public int hashCode() {
        int result = in.hashCode();
        result = 31 * result + a.hashCode();
        return result;
    }
}
